//
//  YYCollectionCell.swift
//  YYProject
//
//  Created by 陆文宇 on 2017/8/28.
//  Copyright © 2017年 陆文宇. All rights reserved.
//

import UIKit

class YYCollectionCell: UICollectionViewCell {
    
    static func yy_register(collectionView: UICollectionView) {
        collectionView.register(UINib(nibName: "\(self)", bundle: nil), forCellWithReuseIdentifier: "\(self)")
    }
    
    static func yy_dequeueReusableCell(collectionView: UICollectionView, indexPath: IndexPath) -> YYCollectionCell {
        return collectionView.dequeueReusableCell(withReuseIdentifier: "\(self)", for: indexPath) as! YYCollectionCell
    }
    
    var yy_model: YYModel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
    }
    
}
